home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 114_01.zip / CONFIG.H < prev    next >
Text File  |  1993-06-01  |  2KB  |  72 lines

  1. /* header for configuration program -- BDS C version
  2.  *
  3.  * Source:  config.h
  4.  * Version: December 20, 1981.
  5.  */
  6.  
  7. /* Values of control keys go here */
  8.  
  9. int up1;        /* insert up key */
  10. int up2;        /* move up key */
  11. int down1;        /* insert down key */
  12. int down2;        /* move down key */
  13. int left;        /* cursor left key */
  14. int right;        /* cursor right key */
  15.  
  16. int ins;        /* enter insert mode key */
  17. int cmnd;        /* enter command mode key */
  18. int edit;        /* enter edit mode key */
  19.  
  20. int del;        /* delete character key */
  21. int undo;        /* undo editing key */
  22. int delline;        /* delete line key */
  23.  
  24. int split;        /* split line key */
  25. int join;        /* join lines key */
  26.  
  27. /* Video screen  and printer characteristics go here */
  28.  
  29. int scrnl;        /* number of rows on screen */
  30. int scrnw;        /* # of columns on screen */
  31. int haseol;        /* has erase to end of line */
  32. int hasel;        /* has erase line */
  33. int hassup;        /* has hardware scroll up */
  34. int hassdn;        /* has hardware scroll down */
  35. int lwidth;        /* width of list device */
  36.  
  37. /* Define array which contains the code that the
  38.  * user gives to do special screen functions.
  39.  */
  40.  
  41. #define BYTEMAX    1000    /* size of byte array */
  42. char bytes[BYTEMAX];
  43. int bytec;        /* index of next free entry */
  44.  
  45. /* Define indices into bytes[] which point at start
  46.  * of code for each special screen function.
  47.  */
  48.  
  49. int gotoind;        /* index to gotoxy code */
  50. int eolind;        /* erase to end of line */
  51. int elind;        /* erase line */
  52. int supind;        /* scroll up */
  53. int sdnind;        /* scroll down */
  54.  
  55. /* Define return codes */
  56.  
  57. #define    YES    1    /* all ok */
  58. #define NO    2    /* try again */
  59. #define EXIT    3    /* stop the program */
  60.  
  61. /* Define special characters */
  62.  
  63. #define CR    13    /* carriage return */
  64. #define LF    10    /* line feed */
  65. #define    TAB    9    /* tab */
  66.  
  67. /* define output file buffer */
  68.  
  69. char    outbuf [BUFSIZ];
  70. aseol;        /* has erase to end of line */
  71. int hasel;        /* has erase line */
  72. int hassup;